package club.gggd.desensitization.anno;

import club.gggd.desensitization.enums.DesensitizeType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Target选择 FIELD，表示该注解只能修饰字段
 * @author srx
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Desensitize {
    /**
     * @return 需要脱敏的类型
     */
    DesensitizeType type();
}
